package com.kujie.access.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kujie.common.core.validate.EditGroup;
import com.kujie.common.tenant.core.TenantEntity;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("access_region_management")
public class RegionManagement extends TenantEntity implements Serializable {
    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属园区
     */
    @TableField("affiliated_park")
    private String affiliatedPark;

    /**
     * 区域查询id
     */
    @TableField("index_code")
    private String indexCode;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 父id
     */
    @TableField("parent_index_code")
    private String parentIndexCode;

    /**
     * 父级名称
     */
    @TableField("parent_name")
    private String parentName;
}
